//
//  MessageViewController.m
//  test1
//
//  Created by chen on 16/10/29.
//  Copyright © 2016年 chen. All rights reserved.
//

#import "MessageViewController.h"
#import "ModelViewController.h"
#import "ModelViewController2.h"

@interface MessageViewController ()

@end

@implementation MessageViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    //设置导航栏
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"tabbar_discover"] style:UIBarButtonItemStyleDone target:self action:@selector(presentView2)];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"广州" style:UIBarButtonItemStylePlain target:self action:@selector(presentView1)];
    self.navigationItem.title = @"活动行";
    
    
}

- (void)presentView1 {
    ModelViewController *modelV = [[ModelViewController alloc]init];
    modelV.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    
    [self presentViewController:modelV animated:YES completion:nil];
}

- (void)presentView2 {
    ModelViewController2 *modelV = [[ModelViewController2 alloc]init];
    modelV.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
    
    [self presentViewController:modelV animated:YES completion:nil];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
